package com.weasel.weixin.commons.message.bean;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**回复音乐消息
 * Created by Dylan on 2015/10/9.
 */
@XStreamAlias("xml")
public class WeiXinPostCommonXmlAnswerMusicMessage extends AbstractWeiXinPostCommonXmlAnswerMessage {

    public WeiXinPostCommonXmlAnswerMusicMessage(){
        setMsgType(MUSIC_MESSAGE_TYPE);
    }

    @XStreamAlias("Music")
    private MusicBody music;

    public MusicBody getMusic() {
        return music;
    }

    public void setMusic(MusicBody music) {
        this.music = music;
    }

    @XStreamAlias("Music")
    public static class MusicBody{

        @XStreamAlias("MusicUrl")
        private String musicUrl; //音乐链接

        @XStreamAlias("Title")
        private String title;  //视频标题

        @XStreamAlias("Description")
        private String description;  //视频介绍

        @XStreamAlias("HQMusicUrl")
        private String hqMusicUrl;  //高质量音乐链接，WIFI环境优先使用该链接播放音乐

        @XStreamAlias("ThumbMediaId")
        private String thumbMediaId;  //缩略图的媒体id，通过素材管理接口上传多媒体文件，得到的id

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getMusicUrl() {
            return musicUrl;
        }

        public void setMusicUrl(String musicUrl) {
            this.musicUrl = musicUrl;
        }

        public String getHqMusicUrl() {
            return hqMusicUrl;
        }

        public void setHqMusicUrl(String hqMusicUrl) {
            this.hqMusicUrl = hqMusicUrl;
        }

        public String getThumbMediaId() {
            return thumbMediaId;
        }

        public void setThumbMediaId(String thumbMediaId) {
            this.thumbMediaId = thumbMediaId;
        }
    }
}
